<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');
0
|| checktplrefresh('./template/qu_app/touch/group/index.htm', './template/qu_app/touch/common/ainuofoot.htm', 1537607341, 'diy', './data/template/7_diy_touch_group_index.tpl.php', './template/qu_app', 'touch/group/index')
;?><?php include template('common/header'); ?><!-- header start -->
    <div class="header">
        <div class="nav">
            <a href="javascript:;" onclick="history.go(-1)" class="z"><i class="iconfont icon-back"></i></a>
<span class="name"><?php echo $_G['setting']['navs']['3']['navname'];?></span>
            <a href="forum.php?mod=group&amp;action=create" class="y"><i class="iconfont icon-add1"></i></a>
        </div>
    </div>
<!-- header end --><?php include template('common/top_fix'); ?><style>
.forum-plate-bar{position:fixed;top:44px;right:0;bottom:0;left:0;overflow:auto;-webkit-overflow-scrolling:touch;right:auto;width:5rem;font-size:.6rem;background-color:#f8f8f8; border-right:1px solid #eee;-webkit-transition:-webkit-transform 300ms;transition:-webkit-transform 300ms;transition:transform 300ms;transition:transform 300ms, -webkit-transform 300ms;-webkit-transform:translate(-100%, 0);transform:translate(-100%, 0)}
.forum-plate-bar .item{position:relative;text-align:center;color:#999;padding:0; margin:0;}
.forum-plate-bar .item a{ display:block;padding:15px 0; font-size:12px;border-bottom:1px solid #eee; color:#666;}
.forum-plate-bar .item a.active{color: #f23030;background:#fff; }
.forum-plate-bar li:first-child a.active{}
.forum-plate-bar .badge{position:absolute;top:50%;right:.1rem;z-index:100;height:.8rem;margin-top:-.4rem;min-width:.8rem;padding:0 .2rem;font-size:.6rem;line-height:.8rem;color:white;vertical-align:top;background:red;-webkit-border-radius:.5rem;border-radius:.5rem;margin-left:.1rem}
.bar-nav ~ .forum-plate-bar{top:2.2rem}
.bar-tab ~ .forum-plate-bar{bottom:2.5rem}
.forum-plate-bar.news-style .item{text-align:left;padding-left:.5rem}
.forum-plate-bar.news-style .item.active{color:#3d4145}
.forum-container{-webkit-transition:margin-left 300ms;transition:margin-left 300ms}
.forum-plate-bar{-webkit-transform:translate(0, 0);transform:translate(0, 0)}
.forum-container{margin-left:5rem;}
.sub_forum{ border:none;}
.tabs .tab{ display:none;}
.tabs .tab.active {display: block;}
</style>

<div class="z-scroll forum-plate-bar">
<ul id="forum-plate-bar">
<li class="item"><a href="#tab0" class="tab-link active">推荐<?php echo $_G['setting']['navs']['3']['navname'];?></a></li>
        <li class="item"><a href="#tab1" class="tab-link"><?php echo $alang_group_mymanage;?></a></li>
        <li class="item"><a href="#tab2" class="tab-link"><?php echo $alang_group_myjiaru;?></a></li>
        <?php if(is_array($first)) foreach($first as $groupid => $group) { ?><li class="item"><a href="#tab<?php echo $groupid;?>" class="tab-link"><?php echo $group['name'];?></a></li>
        <?php } ?>
   </ul>
</div>

<div class="infinite-scroll-bottom forum-container native-scroll">
    <div class="tabs">
<div class="sub_forum tab active" id="tab0">
            <?php if(dunserialize($_G['setting']['group_recommend'])) { ?>
                <ul>
                <?php if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?>         
                    <li>
                        <div class="subicon">
                        <?php if($val['icon']) { ?>
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>"><img src="<?php echo $val['icon'];?>" /></a>
                        <?php } else { ?>
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>"><img src="static/image/common/groupicon.gif" /></a>
                        <?php } ?>
                        </div>
                        <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>" class="mui-right">
                            <i class="iconfont icon-right"></i>
                            <div class="mui-media-body">
                                <h2><?php echo $val['name'];?></h2>
                                <p class="mui-ellipsis"><?php echo $val['description'];?></p>
                            </div>
                        </a>
                    </li>
                    <?php } ?>
                    </ul>
            <?php } else { ?>
                <div class="ainuoemp"><?php echo $alang_zanwutuijian;?></div>
            <?php } ?>
            
        </div>
        <?php require_once(DISCUZ_ROOT."./template/qu_app/touch/ainuo/group_my.php");?>        <div class="sub_forum tab" id="tab1">
            <?php if($grouplistmanage) { ?>
                <ul>
                <?php if(is_array($grouplistmanage)) foreach($grouplistmanage as $groupid => $group) { ?>                <?php $groupdesc = DB::result_first('SELECT description FROM '.DB::table('forum_forumfield').' WHERE fid ='.$groupid.'')?>                        <li>
                            <div class="subicon">
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $groupid;?>"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
                            </div>
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $groupid;?>" class="mui-right">
                                <i class="iconfont icon-right"></i>
                                <div class="mui-media-body">
                                    <h2><?php echo $group['name'];?></h2>
                                    <p class="mui-ellipsis"><?php echo $groupdesc;?></p>
                                </div>
                            </a>
                        </li>
<?php } ?>
</ul>
            <?php } else { ?>
                <?php if($_G['uid']) { ?>
                	<div class="ainuoemp">
                    	<a href="forum.php?mod=group&amp;action=create">创建<?php echo $_G['setting']['navs']['3']['navname'];?></a>
                        <p style="margin-top:20px;"><?php echo $alang_zanwuchuangjian;?></p>
                    </div>
                <?php } else { ?>
                	<div class="ainuoemp"><a href="javascript:;" class="ainuo_nologin"><?php echo $alang_loginfirst;?> <i class="iconfont icon-right"></i></a>
                	</div>
                <?php } ?>
            <?php } ?>
            
        </div>
        <div class="sub_forum tab" id="tab2">
            <?php if($grouplistjiaru) { ?>
                <ul>
                <?php if(is_array($grouplistjiaru)) foreach($grouplistjiaru as $groupid => $group) { ?>                <?php $groupdesc = DB::result_first('SELECT description FROM '.DB::table('forum_forumfield').' WHERE fid ='.$groupid.'')?>                        <li>
                            <div class="subicon">
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $groupid;?>"><img src="<?php echo $group['icon'];?>" alt="<?php echo $group['name'];?>" /></a>
                            </div>
                            <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $groupid;?>" class="mui-right">
                                <i class="iconfont icon-right"></i>
                                <div class="mui-media-body">
                                    <h2><?php echo $group['name'];?></h2>
                                    <p class="mui-ellipsis"><?php echo $groupdesc;?></p>
                                </div>
                            </a>
                        </li>
<?php } ?>
</ul>
            <?php } else { ?>
                <?php if($_G['uid']) { ?>
                	<div class="ainuoemp"><?php echo $alang_zanwujiaru;?></div>
                <?php } else { ?>
                	<div class="ainuoemp"><a href="javascript:;" class="ainuo_nologin"><?php echo $alang_loginfirst;?> <i class="iconfont icon-right"></i></a>
                		<p style="margin-top:20px;"><?php echo $alang_addguanzhu2;?></p>
                	</div>
                <?php } ?>
            <?php } ?>
            
        </div>
    <?php if(is_array($first)) foreach($first as $groupid => $group) { ?>        <div class="sub_forum tab" id="tab<?php echo $groupid;?>">
            <ul class="cl">
            <?php if(is_array($lastupdategroup[$groupid])) foreach($lastupdategroup[$groupid] as $val) { ?>            <?php $aicon = DB::result_first('SELECT icon FROM '.DB::table('forum_forumfield').' WHERE fid ='.$val[fid].'')?>            <?php $adesc = DB::result_first('SELECT description FROM '.DB::table('forum_forumfield').' WHERE fid ='.$val[fid].'')?>                <li>
                    <div class="subicon">
                    <?php if($aicon) { ?>
                        <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>"><img src="data/attachment/group/<?php echo $aicon;?>" /></a>
                    <?php } else { ?>
                        <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>"><img src="static/image/common/groupicon.gif" /></a>
                    <?php } ?>
                    </div>
                    <a href="forum.php?mod=forumdisplay&amp;action=list&amp;fid=<?php echo $val['fid'];?>" class="mui-right">
                        <i class="iconfont icon-right"></i>
                        <div class="mui-media-body">
                            <h2><?php echo $val['name'];?></h2>
                            <p class="mui-ellipsis"><?php echo $adesc;?></p>
                        </div>
                    </a>
                </li>
                <?php } ?>
            </ul>
        </div>
        
    <?php } ?>
    
    </div>
</div>
<style>.ainuopage_main{padding-bottom:48px;}</style>
<?php if($openbotnav) { ?>
<?php echo $openbotnavcon;?>
<?php } else { ?>
<div class="ainuo_foot_nav cl" id="ainuo_foot_nav">
    <ul>
        <li>
        	<a href="forum.php?mod=guide&amp;view=hot" <?php if($_GET['mod'] == 'guide') { ?>class="foothover"<?php } ?>>
            	<i class="nohover iconfont icon-homefill"></i>
                <i class="hover iconfont icon-homefill"></i>
                <p><?php echo $alang_home;?></p>
</a>
</li>
        <li>
        	<a href="forum.php?forumlist=1" <?php if($_GET['forumlist']) { ?>class="foothover"<?php } ?>>
            	<i class="nohover iconfont icon-newfill"></i>
                <i class="hover iconfont icon-newfill"></i>
                <p><?php echo $alang_forum;?></p>
</a>
</li>
        <li>
        	<a href="javascript:;" class="botpost">
                <em><i class="iconfont icon-add"></i></em>
                <p><?php echo $alang_post;?></p>
</a>
</li>
        
        <li>
        	<a href="<?php echo $_G['cache']['plugin']['qu_app']['botgroupurl'];?>" <?php if($_G['basescript'] == 'group') { ?>class="foothover"<?php } ?>>
            	<i class="nohover iconfont icon-<?php echo $_G['cache']['plugin']['qu_app']['botgroupicon'];?>"></i>
            	<i class="hover iconfont icon-<?php echo $_G['cache']['plugin']['qu_app']['botgroupicon'];?>"></i>
                <p><?php echo $_G['cache']['plugin']['qu_app']['botgroupname'];?></p>
</a>
</li>
        <li class="amy">
        	<a href="home.php?mod=space&amp;uid=<?php echo $_G['uid'];?>&amp;do=profile&amp;mycenter=1" <?php if($_GET['mod']=='space') { ?>class="foothover ainuo_nologin"<?php } else { ?>class="ainuo_nologin"<?php } ?>>
            	<i class="nohover iconfont icon-myfill"></i>
                <i class="hover iconfont icon-myfill"></i>
                <?php if($_G['member']['newprompt'] || $_G['member']['newpm']) { ?><em></em><?php } ?>
                <p><?php echo $alang_my;?></p>
</a>
</li>
    </ul>
</div>
<?php } ?>

<style>
#apostmask{position: fixed;width: 100%;height: 100%;bottom: 0;background: rgba(0,0,0,0.5); z-index:100000;}
</style>
<div id="apostmask" style="display:none;">
<div class="mask_top cl">	
    	
    </div>
<div class="mask_post_bottom cl">
    	<div class="mask_con cl">
        	<div class="atit cl"><?php echo $alang_postwhat;?></div>
           <?php if(is_array($quicknav)) foreach($quicknav as $nav) { ?>            <?php if($nav['disable']) { ?>
            <a href="<?php echo $nav['url'];?>">
                <i class="iconfont icon-<?php echo $nav['pic'];?>" style="background:<?php echo $nav['color'];?>"></i>
                <p><?php echo $nav['title'];?></p>
            </a>
            <?php } ?>
            <?php } ?>
        </div>
        <div class="aclose cl"><a href="javascript:;" id="aclose"><i class="iconfont icon-close"></i></a></div>
    </div>
</div><?php include template('common/footer'); ?>